#include "stdio.h"
#include "timer.h"
#include "conio.h"
#include "string.h"

#define H 12
#define L 24

char GameMap[H][L];
int  key;   
int  sum = 1, over = 0; 
int  dx[4] = { 0, 0, -1, 1 };  
int  dy[4] = { -1, 1, 0, 0 };
struct Snake   
{
	int x, y;  
	int now;  
}Snake[48];
static char Shead = '@';  
static char Sbody = '#'; 
static char Sfood = '*'; 
static char Snode = ' '; 

int snakeRun();

void Initial();  //µØÍ¼µÄ³õÊ¼»¯  
void Create_Food(); //ÔÚµØÍ¼ÉÏËæ»ú²úÉúÊ³Îï  
void Show();   //Ë¢ÐÂÏÔÊ¾µØÍ¼  
void Button();  //È¡³ö°´¼ü,²¢ÅÐ¶Ï·½Ïò  
void Move();   //ÉßµÄÒÆ¶¯  
void Check_Border();  //¼ì²éÉßÍ·ÊÇ·ñÔ½½ç  
void Check_Head(int x, int y);   //¼ì²éÉßÍ·ÒÆ¶¯ºóµÄÎ»ÖÃÇé¿ö  


